var myDao = require('./myDao');

var userDao = module.exports = {
    //
    dbInfo: {
        dbType: 'mysql',
        host: 'localhost',
        port: 3306,
        user: 'root',
        password: 'root',
        database: 'test',
        table: 'user'
    }
    //
    , getById: function (pm, fn) {
        myDao.getById(this.dbInfo, pm, fn);
    }
    //
    , getByIds: function (pm, fn) {
        myDao.getByIds(this.dbInfo, pm, fn);
    }
    //
    , getByWhere: function (pm, fn) {
        myDao.getByWhere(this.dbInfo, pm, fn);
    }
    //
    , delById: function (pm, fn) {
        myDao.delById(this.dbInfo, pm, fn);
    }
    //
    , delByIds: function (pm, fn) {
        myDao.delByIds(this.dbInfo, pm, fn);
    }
    //
    , add: function (pm, fn) {
        myDao.add(this.dbInfo, pm, fn);
    }
    //
    , createTable: function (pm, fn) {
        myDao.createTable(this.dbInfo, pm, fn);
    }
    //
    , editById: function (pm, fn) {
        myDao.editById(this.dbInfo, pm, fn)
    }
    //
    , passedById: function (pm, fn) {

        myDao.editById(this.dbInfo, pm, fn)
    }


    ///end
}